package com.zhuoyue.system.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhuoyue.common.annotation.Excel;
import com.zhuoyue.common.core.domain.BaseEntity;
import com.zhuoyue.common.core.domain.entity.SysDictData;
import com.zhuoyue.common.core.domain.entity.TblProductBrand;
import com.zhuoyue.common.core.domain.entity.TblProductClassify;
import com.zhuoyue.common.core.domain.entity.TblProductSeries;
import lombok.Data;

import java.util.List;

/**
 * image对象 sys_image
 *
 * @author hewenze
 * @date 2020-08-21
 */

@Data
public class TblProductInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private String id;

    @Excel(name = "产品名称")
    private String productName;

    /**
     * 如 0FAA0202
     */
    @Excel(name = "产品类型")
    private String categoryCode;

    private Long brandId;
    @Excel(name = "所属品牌")
    private String brandName;

    private String seriesIdList;
    @Excel(name = "所属系列")
    private String seriesNameList;
    private List<TblProductSeries> productSeriesList;

    private String dictCodeList;
    @Excel(name = "功能")
    private String dictLabelList;
    private List<SysDictData> dictDataList;

    private Long categoryId;
    private String categoryName;

    private TblProductBrand productBrand;

    /**
     * 用户搜索的系列列表
     */
    private Long selectClassifyId;
    private Long selectSeriesId;
    private String selectSeriesIdList;

    private List<TblProductClassify> productClassifyList;

    /**
     * 展示图
     * 两个大小字母一起时需要加JsonProperty, 否则json序列化时会出问题
     */
    @JsonProperty("pZImageUID")
    private String pZImageUID;
    @Excel(name = "展示图")
    @JsonProperty("pZUrl")
    private String pZUrl;
    @JsonProperty("pZOssUrl")
    private String pZOssUrl;
    @JsonProperty("pZSize")
    private Long pZSize;
    @JsonProperty("pZWidth")
    private Integer pZWidth;
    @JsonProperty("pZHeight")
    private Integer pZHeight;

    /**
     * 入网图
     */
    @JsonProperty("pRImageUID")
    private String pRImageUID;
    @Excel(name = "入网图")
    @JsonProperty("pRUrl")
    private String pRUrl;
    @JsonProperty("pROssUrl")
    private String pROssUrl;
    @JsonProperty("pRSize")
    private Long pRSize;
    @JsonProperty("pRWidth")
    private Integer pRWidth;
    @JsonProperty("pRHeight")
    private Integer pRHeight;
    @JsonProperty("orderNum")
    private Integer orderNum;

    @Excel(name = "入网操作")
    private String operationText;
    @Excel(name = "安装教程")
    private String installPromptUrl;

    @Excel(name = "自动入网", readConverterExp = "Y=是,N=否")
    private String zdrw;

    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    private Long deptId;
    @Excel(name = "所属组织")
    private String deptName;

    private String productType;
    private String delFlag;
}
